package com.aiwei.tdjk.dao.extend;

import com.aiwei.tdjk.dao.mbg.AuthMapper;
import com.aiwei.tdjk.dto.request.GetAuthPagerRequest;
import com.aiwei.tdjk.entity.Auth;

import java.util.HashMap;
import java.util.List;
import java.util.Set;


public interface AuthExtendMapper extends AuthMapper{

//    Set<Long> findRoleIds(@Param("userId")Long userId, @Param("groupIds")Set<Long> groupIds,
//                          @Param("organizationIds")Set<Long> organizationIds, @Param("jobIds")Set<Long> jobIds,
//                          @Param("organizationJobIds")Set<Long[]> organizationJobIds);


    Set<Long> findRoleIds(HashMap<String,Object> map);

    List<Auth> find(GetAuthPagerRequest request);

    /**
     * 获取总数
     * @param request
     * @return
     */
    int getTotalCount(GetAuthPagerRequest request);



}